package com.eastmoney.emis.edda.infrastructure.account.mapper;

import com.eastmoney.emis.datasource.annotation.TargetDataSource;
import com.eastmoney.emis.edda.common.DbName;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

/**
 * @description: Description
 * @projectName: EDDA-HSBC
 * @package: com.eastmoney.emis.edda.infrastructure.account
 * @author: 汪程程
 * @date: 2022/10/26 6:27 PM
 * @version: 1.0
 */
@Mapper
public interface AccountInfoRepository {

    @TargetDataSource(DbName.ACCOUNT)
    String findAccountCodeByClientId(@Param("clientId") String clientId);

    @TargetDataSource(DbName.ACCOUNT)
    LocalDateTime findOpenDateByClientId(@Param("clientId") String clientId);

    @TargetDataSource(DbName.ACCOUNT)
    String findMobileByClientId(@Param("clientId") String clientId);

}
